using Admin.NET.Application.LAKALA;
using Furion;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;

namespace Admin.NET.Application.Extension;

public static class LklExtension
{
	public static void AddLKL(this IServiceCollection services)
	{
		services.AddConfigurableOptions<LKLConfigOptions>();
		LKLConfigOptions options = App.GetService<IOptions<LKLConfigOptions>>().Value;
		LKLUtil.Init(options.AppId, options.SerialNo, options.OrgCode);
	}
}
